package com.gakj.truck.third.api.mapper;

import com.gakj.truck.third.core.annotation.MyBatisMapper;
import com.gakj.truck.third.core.domain.TruckModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by gc on 2016/5/25.
 */
@MyBatisMapper
public interface TruckModelMapper {

    List<TruckModel> getByName(@Param(value = "name") String name);

    TruckModel getById(@Param(value = "id") Integer id);

    List<TruckModel> getAll();

    void delete(@Param(value = "id") Integer id);

    Long save(TruckModel model);

}
